package com.sys.ai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sys.common.annotation.Excel;
import com.sys.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * AI流程对象 ai_workflow
 *
 * @author LGY
 * @date 2025-05-23
 */
@Data
@Accessors(chain = true)
@TableName("ai_workflow")
@Schema(description = "AI流程对象")
public class AiWorkflow extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private String id;
    /**
     * 流程名称
     */
    @Excel(name = "流程名称")
    @TableField(value = "name")
    @Schema(description = "流程名称")
    private String name;
    /**
     * 流程配置
     */
    @Excel(name = "流程配置")
    @TableField(value = "graph")
    @Schema(description = "流程配置")
    private String graph;
    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField(value = "status")
    @Schema(description = "状态")
    private Integer status;
    /**
     * 备注
     */
    @Excel(name = "备注")
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;
}